package com.sry.blog.enums;


public enum CheckToken {

    SUCCESS(200,true,"success"),
    EXPIRED(401,false,"登录过期，请重新登录"),
    ILLEGAL(402,false,"Token不合法，请重置"),
    ELSE(500,false,"请重新登录");

    private boolean flag;
    private String msg;
    private long code;

    CheckToken(long code,boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
        this.code = code;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
